package com.info.zhiduoduo.core.dto.zhaoshang;

import com.info.zhiduoduo.common.constants.pay.ZddMerchantType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ZhaoShangTransactionOutlineFormBean {

	@NotEmpty
	private int paymentMerchant;
	@NotEmpty
	private String orderTime;
	@NotEmpty
	private String tradeNo;

	public static ZhaoShangTransactionOutlineFormBean of(Integer merchantId, String orderTime, String tradeNo) {
		return new ZhaoShangTransactionOutlineFormBean(merchantId, orderTime, tradeNo);
	}

	public static ZhaoShangTransactionOutlineFormBean of(String orderTime, String tradeNo) {
		return new ZhaoShangTransactionOutlineFormBean(ZddMerchantType.ZHAOSHANG_ZHISHENG, orderTime, tradeNo);
	}
}
